<div class="the-island clearfix">
  <h3><?php print t('the islands'); ?></h3>
  <?php
  $kweri = db_query('SELECT node.nid, node.title, nr.body FROM {node} node INNER JOIN {node_revisions} nr ON nr.nid = node.nid WHERE node.status = 1 and node.type = "%s" ORDER BY node.title LIMIT 20', 'island');
  $islands = array();
  while ($kweried = db_fetch_array($kweri)) {$islands[$kweried['nid']] = $kweried;}
  for($i = 0; $i <= 20; $i += 5) {
    $col = array_slice($islands, $i, 5, true); ?>
    <ul class="island">
    <?php
    foreach($col as $nid=> $island){
      $attrs['rel'] = $nid;
      if ($i == 0) { $attrs['class'] = 'active'; }
      print '<li>' . l($island['title'], 'node/'.$nid, array('attributes' => $attrs)) . '</li>';
    }
    ?>
    </ul>
  <?php
  }
  ?>
</div>
